package com.sntk.organauthomanager.infrastructure.commit;

import com.sntk.organauthomanager.application.dto.ResponseData;
import com.sntk.organauthomanager.infrastructure.commit.impl.MedicalUserCommitHystrix;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name= "medical-center", fallback = MedicalUserCommitHystrix.class)
@ConditionalOnProperty(prefix = "env",name = "pattern",havingValue = "cloud")
public interface MedicalUserCloudCommit extends MedicalUserCommit{

    /**
     * 查询未分配的用户列表
     * @param institutionNumber
     * @return
     */
    @GetMapping(value = "/sntk/pension/interior/user")
    ResponseData searchAllocationUsers(@RequestParam("institutionNumber") String institutionNumber);

}
